package com.example.demo.service;
/* @Author      zouzh
 * @PackageName BlogSystem-sm
 * @Package     com.example.demo.service
 * @Date        2023/9/5 13:50
 */

import com.example.demo.dao.UserMapper;
import com.example.demo.model.UserInfo;
import com.example.demo.model.vo.UserinfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public int reg(UserInfo userInfo){
        return userMapper.reg(userInfo);
    }

    public UserInfo getUserByName(String username){
        return userMapper.getUserByName(username);
    }

    public UserinfoVO getUserByid(int uid){
        return userMapper.getUserByid(uid);
    }



}
